from django.db import models

from .fm_user import FMUser
from .product import ProductSpec


class Cart(models.Model):
    user = models.ForeignKey(FMUser, verbose_name=u'用户')
    spec = models.ForeignKey(ProductSpec, verbose_name=u'商品')
    amount = models.IntegerField(verbose_name=u'数量')

    class Meta:
        verbose_name = u'购物车'
        verbose_name_plural = u'购物车'
